const AppError = require('../utils/appError');

const notFound = (req, res, next) => {
  const message = `找不到路径 ${req.originalUrl}`;
  next(new AppError(message, 404));
};

module.exports = notFound;